package wickethub.web.page;

import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import wickethub.domain.BlogPost;

public class ViewBlogPostPanel extends Panel {
	
	public ViewBlogPostPanel(String id, IModel<BlogPost> model) {
		super(id);
		
		String url = model.getObject().getUrl();
		Label label = new Label("url", url);
		label.add(new SimpleAttributeModifier("href", url));
		
		add(label);
		
    }
    
}